package com.mate.cloud.user.controller;

import com.mate.cloud.user.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cong zhi
 * @description ${description}
 * @email 448341911@qq.com
 * @createDate 2023/3/21 12:27
 * @version: v1.0
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderService orderService;


    @GetMapping("/query")
    public String query() {
        return "query " + this.orderService.query();
    }

    @GetMapping("/update")
    public String update() {
        System.out.println("do sh....");
        return "update " + this.orderService.query();
    }
}
